<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">项目人员情况 </div>


<table  <c:if test="${param.isPrp==false }"> id="zh_persons"</c:if> 
	<c:if test="${empty param.isPrp}"> id="zh_persons"</c:if>
 <c:if test="${param.isPrp==true }"> id="zh_persons1"</c:if>
  border="0" cellspacing="0" cellpadding="0" class="table01 t_css" >
	<thead>
		<tr>
            <th >序号</th>
			<th width="13%">姓名</th>
			<th width="11%">出生年月</th>
			<th width="5%">性别</th>
			<th width="11%">从事专业</th>
			<th width="10%">职称</th>
			<th width="10%">学历</th>
			<th width="15%">所在单位</th>
			<th width="10%" >项目分工 </th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center">
					<span name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
					<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" style="display:none"/> 
						<div style="dispaly:none">
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/en_name" value="<x:out select="$zh_person/basic_info/en_name" />"/>
							<input type=hidden name= "zh_persons/zh_person[${flag}${index}]/basic_info/position" value="<x:out select="$zh_person/basic_info/position" />">
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$zh_person/basic_info/ethnicity_value" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name" value="<x:out select="$zh_person/basic_info/ethnicity_name" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_code" value="<x:out select="$zh_person/basic_info/subject_code" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_name" value="<x:out select="$zh_person/basic_info/subject_name" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_code" value="<x:out select="$zh_person/basic_info/discipline_code" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_name" value="<x:out select="$zh_person/basic_info/discipline_name" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_value" value="<x:out select="$zh_person/basic_info/region_value" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_name" value="<x:out select="$zh_person/basic_info/region_name" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$zh_person/basic_info/card_type_value" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_value" value="<x:out select="$zh_person/basic_info/academician_value" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_name" value="<x:out select="$zh_person/basic_info/academician_name" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code" value="<x:out select="$zh_person/basic_info/org_code" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work" value="<x:out select="$zh_person/contact/tel_work" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/fax" value="<x:out select="$zh_person/contact/fax" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value" value="<x:out select="$zh_person/basic_info/degree_value" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name" value="<x:out select="$zh_person/basic_info/degree_name" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_code" value="<x:out select="$zh_person/basic_info/post_code" />" />
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_value" value="<x:out select="$zh_person/basic_info/degree_country_value" />" /> 
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_name" value="<x:out select="$zh_person/basic_info/degree_country_name" />" /> 
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_college" value="<x:out select="$zh_person/basic_info/degree_college" />" /> 
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_year" value="<x:out select="$zh_person/basic_info/degree_year" />" /> 
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title" value="<x:out select="$zh_person/basic_info/prof_title" />" /> 
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$zh_person/basic_info/prof_title_value" />" /> 
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/address" value="<x:out select="$zh_person/basic_info/address" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_value" value="<x:out select="$zh_person/basic_info/post_doctor_value" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_name" value="<x:out select="$zh_person/basic_info/post_doctor_name" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age" value="<x:out select="$zh_person/basic_info/age" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value" value="<x:out select="$zh_person/basic_info/educate_value" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code" value="<x:out select="$zh_person/basic_info/card_code" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$zh_person/basic_info/card_type_name" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/email" value="<x:out select="$zh_person/contact/email" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/mobile" value="<x:out select="$zh_person/contact/mobile" />"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/iscomember" value="0"/>
							<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml"/>
						</div>
				</td>
				<td align="center">
					<span name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><a href="#" class="yase" onclick="psnInfoViewBykjjzfp(this,<c:if test="${param.isPrp==false }"> 'zh_persons'</c:if><c:if test="${param.isPrp==true }"> 'zh_persons1'</c:if><c:if test="${empty param.isPrp}"> 'zh_persons'</c:if>)"><x:out escapeXml="false"  select="$zh_person/basic_info/zh_name" /></a></span>
				</td>
				<td align="center">
					<span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out  escapeXml="false" select="$zh_person/basic_info/birthday" /></span>
				</td>
				<td align="center">
				<x:out  escapeXml="false" select="$zh_person/basic_info/gender_name" />
				<%-- <c:set var="gender_value"><x:out escapeXml="false" select="$zh_person/basic_info/gender_value" /></c:set>
				<c:choose>
					<c:when test="${fn:contains(gender_value,'>M') || fn:contains(gender_value,'>F')}">
  	                   <c:when test="${gender_value=='F' or gender_value=='M'}">
  	                   		<c:if test="${fn:contains(gender_value,'>F')}">女</c:if>
  	                   		<c:if test="${fn:contains(gender_value,'>M')}">男</c:if>
  	                   </c:when>
                       <c:otherwise>
  		                  <span name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value"><x:out escapeXml="false" select="$zh_person/basic_info/gender_value" /></span>
  	                  </c:otherwise>
                 </c:choose> --%>
				</td>
				<td align="center">					
					<span name="zh_persons/zh_person[${flag}${index}]/contact/major_work"><x:out escapeXml="false" select="$zh_person/contact/major_work" /></span>
				</td>
				
				<td align="center">
					 <span name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out  escapeXml="false"    select="$zh_person/basic_info/prof_title_name" /></span>
				</td>
				<td align="center"> 
					<span name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"><x:out escapeXml="false" select="$zh_person/basic_info/educate_name" /></span>
				</td>
				<td align="center">
					<span name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name"><x:out escapeXml="false" select="$zh_person/basic_info/org_name" /></span>
				</td>
				<td align="center">
					<span name="zh_persons/zh_person[${flag}${index}]/basic_info/work"><c:choose><c:when test="${index==0}">项目负责人</c:when><c:otherwise><x:out  escapeXml="false"    select="$zh_person/basic_info/work" /></c:otherwise></c:choose></span>
				</td>
				
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		</tbody>
</table>	
	
<div class="t_bar">项目负责人简介，重点填写研发经历、主要成果、技术述评和管理能力等</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0"  id="tblresume"  cellspacing="1">
    <tr>
        <td><pre><x:out  escapeXml="false"    select="$xmlData/data/proposal/goal/resume"/></pre></td>
    </tr>
</table>
<script type="text/javascript">
function psnInfoViewBykjjzfp(obj,tableId) {
	
    var subGrantCode = $("#[name='proposal/sub_grant_code']").val();
    var url;
   
    url = ctx+"/contract/view/dialog/psnInfoEdit_kjcxxmsf_view?parentTab="+tableId+"&type=edit&TB_iframe=true&height=460&width=910";
    
    $(obj).parents("tr").find(":radio").attr("checked",true);
    if(!$("#"+tableId+" :radio:checked").length>0){
        scmWarn(irisNotes.pleaseSelectARow);
        return false;
    }
    if(url!=null&&url!=""){
    	// showThickBox(url,irisNotes.viewResearcherInformation);
		var title=irisNotes.viewResearcherInformation;
		tb_show(title,url,false);
    }
}
</script>